#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1()
{
    string haystack = "sadbutsad";
    string needle = "sad";
    int ret = Solution().strStr(haystack, needle);
    if(ret == 0)
    {
        std::cout << "Test 1 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 1 .... Failed" << std::endl;
    }
}

void Test2()
{
    string haystack = "lhxccoj";
    string needle = "lhxoj";
    int ret = Solution().strStr(haystack, needle);
    if(ret == -1)
    {
        std::cout << "Test 2 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 2 .... Failed" << std::endl;
    }
}

int main()
{
    Test1();
    // std::cout << "ceshi...." <<std::endl;
    Test2();

    return 0;
}